<script src="lib/plupload-2.1.2/js/plupload.full.min.js"></script>

<div class="row" ng-controller="LabFeeCtrl">

    <div class="col-sm-12">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <strong>实验室费用列表</strong>
            </div>

            <div class="panel-body">

                <div class="row center-block row_section" ng-hide="role == 4">
                    <div class="span6  col-sm-4">
                        <label for="province" class="col-sm-4 control-label">省份</label>
                        <div class="col-sm-8 ">
                            <select ng-model="province"
                                    ng-change="provinceChanged(province)"
                                    class="form-control" id="province"
                                    ng-options="item._id as item.name for item in provinces">
                                <option value="">请选择省份</option>
                            </select>

                        </div>
                    </div>

                    <div class="span6  col-sm-4" ng-hide="role == 4">
                        <label for="hospital" class="col-sm-4 control-label">医院</label>
                        <div class="col-sm-8 ">
                            <select ng-model="hospital"
                                    class="form-control" id="hospital"
                                    ng-options="item._id as item.name for item in hospitals">
                                <option value="">请选择医院</option>
                            </select>
                        </div>
                    </div>

                    <div class="col-sm-4">
                        <button type="button" ng-click="search()" class="btn btn-default">确定</button>
                    </div>
                </div>

                <div clss="table-container">
                    <div id="outerdiv">
                        <div id="innerdiv">
                            <table st-pipe="callServer" st-table="displayed" class="table table-striped">
                                <thead>
                                <tr>
                                    <th st-ratio="25" st-sort="name">设备耗材名称</th>
                                    <th st-ratio="15" st-sort="name">金额</th>
                                    <th st-ratio="25" st-sort="phone">所属医院</th>
                                    <th st-ratio="20" st-sort="province">日期</th>
                                    <th st-ratio="15" st-sort="introduce" st-align-center>医院接收人</th>
                                </tr>

                                </thead>
                                <tbody ng-hide="isLoading">
                                <tr ng-repeat="row in displayed">
                                    <td st-ratio="25">{{row.detail}}</td>
                                    <td st-ratio="15">{{row.fee}}</td>
                                    <td st-ratio="25">{{row.province.name}}-{{row.hospital.name}}</td>
                                    <td st-ratio="20">{{row.time | date : 'yyyy-MM-dd'}}</td>
                                    <td st-ratio="15">{{row.hospital_contact}}</td>
                                </tr>
                                </tbody>
                                <tbody ng-show="isLoading">
                                <tr>
                                    <td colspan="4" class="text-center">Loading ... </td>
                                </tr>
                                <tfoot>
                                <tr>
                                    <!--<td class="text-center" st-pagination="" st-items-by-page="10" colspan="4"></td>-->
                                    <td colspan="9" class="text-center">
                                        <div st-items-by-page="10" colspan="40" st-pagination="" st-template="partials/pagination.custom.html"></div>
                                    </td>
                                </tr>
                                </tfoot>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>